package cate.game.activity.newhero.data;

import cate.common.table.call.row.CallWeightRow;
import cate.common.util.random.RWItem;
import easy.java.dev.note.NoteField;

public class HCUpItem implements RWItem {
    public HCUpItem() {
    }

    @NoteField("编号")
    public int id;

    @NoteField("英雄id")
    public int heroId;

    @NoteField("权重")
    public double weight;

    public HCUpItem(CallWeightRow row) {
        this.id = row.id;
        this.weight = row.weight;
        this.heroId = row.heroId;
    }

    public HCUpItem(int id, double weight) {
        this.id = id;
        this.weight = weight;
    }

    @Override
    public double getWeight() {
        return weight;
    }


}
